package com.hotelsystem.service;

import com.hotelsystem.pojo.Customer;

import java.util.List;
import java.util.Map;

public interface CustomerService {

    /**
     * 根据身份证号模糊查询客户信息
     *
     * @param idNumber 身份证号
     * @return
     * @throws Exception
     */
    List<Customer> list(String idNumber) throws Exception;

    /**
     * 根据身份证号获取客户信息
     *
     * @param idNumber 身份证号
     * @return
     * @throws Exception
     */
    Customer get(String idNumber) throws Exception;

    /**
     * 查询用户所有信息
     * @return
     */
    public List<Customer> findCustomerList(Map<String, Object> map) throws Exception;

    /**
     * 删除信息
     * @param customerId
     * @return
     * @throws Exception
     */
    public Integer deleteCustomer(Integer customerId) throws Exception;

    /**
     * 根据id查询
     * @param customerId
     * @return
     */
    public Customer findCustomerById(Integer customerId);
    /**
     * 修改用户信息
     * @param customer
     * @return
     * @throws Exception
     */
    public Integer updateCustomer(Customer customer) throws Exception;

}